package com.dong.config;

import com.dong.bean.Boss;
import com.dong.bean.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.FilterType;

@Configuration
@ComponentScan( value = "com.dong",
        includeFilters ={
                @ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE,classes = {Boss.class})
        },
        useDefaultFilters = false)
public class T051AutowareConfig2 {
    @Bean
    public Car car() {
        return new Car();
    }
}
